package com.mes.biz.service.impl;

import com.github.pagehelper.PageInfo;
import com.mes.biz.domain.BizConfig;
import com.mes.biz.domain.BizOrderProduct;
import com.mes.biz.domain.BizProductionOrder;
import com.mes.biz.mapper.BizConfigMapper;
import com.mes.biz.mapper.BizProductionOrderMapper;
import com.mes.biz.service.BizConfigService;
import com.mes.biz.service.BizProductionOrderService;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.core.service.BaseServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 生产单Service业务层处理
 * @author hwg
 * @email hwg
 * @date 2023-03-27
 */
@Service
public class BizProductionOrderServiceImpl extends BaseServiceImpl<BizProductionOrderMapper, BizProductionOrder> implements BizProductionOrderService {

    @Resource
    private BizProductionOrderMapper bizProductionOrderMapper;

    @Override
    public List<BizProductionOrder> getProcessDetailList(String orderId, String userId) {
        return bizProductionOrderMapper.getProcessDetailList(orderId,userId);
    }

    @Override
    public BizProductionOrder getProductionOrderByOrderIdWithProductId(String orderId, String productId) {
        return bizProductionOrderMapper.getProductionOrderByOrderIdWithProductId(orderId,productId);
    }

    @Override
    public List<BizProductionOrder> getProductionOrderByOrderId(String orderId) {
        return bizProductionOrderMapper.getProductionOrderByOrderId(orderId);
    }
}
